package com.xing.server.service;

import com.xing.server.base.R;
import com.xing.server.pojo.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xing.server.pojo.RPageBean;
import com.xing.server.pojo.RespPageBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xingfuhao
 * @since 2021-11-28
 */
@Service
public interface IEmployeeService extends IService<Employee> {

    /**
     * 获取所有员工 分页
     * @param currentPage
     * @param size
     * @param employee
     * @param beginDateScope
     * @return
     */
    RPageBean getEmployeeByPage(Integer currentPage, Integer size, Employee employee, LocalDate[] beginDateScope);

    /**
     * 获取工号
     * @return
     */
    R getMaxWorkId();

    /**
     * 添加员工
     * @param employee
     * @return
     */
    R addEmp(Employee employee);

    /**
     * 查询员工
     * @param id
     * @return
     */
    List<Employee> getEmployee(Integer id);

    /**
     * 获取所有员工的套帐 分页
     * @param currentPage
     * @param size
     * @return
     */
    RPageBean getAllEmployeeWithSalary(Integer currentPage, Integer size);
}
